<?php 
$sql =	"SELECT
			  c.page_id,
			  d.title,
			  d.description,
			  d.meta_key,
			  d.meta_description	
		  FROM
			  pages AS c,
			  page_description AS d,
			  sef_url AS s
		  WHERE
		  
			  c.page_id = d.page_id
			  AND
			  d.lang_id = '".$_SESSION['lang_id']."'
			  
			  AND
				c.page_id = s.query
				AND
				s.lang_id = '".$_SESSION['lang_id']."'
				AND s.tamplate = 'page'
			 
			  AND
				s.sef_url = 'technics' 
		  ";
$result = query($sql);
$row = mysql_fetch_object($result);


head(sth($row->title),sth($row->meta_description),sth($row->meta_key));


?>
<div class="loadLoader">
	
</div>
<section id="slider">

<div class="timelineLoader">
	<img src="<?=HTML_BASE?>images/loader.gif" />
</div>
	
<div class="timeline tech">
		<?php 
		
				$sql = "SELECT
				c.technics_id,
				c.category,
				c.cover,
				c.order_number,
				c.creation_time,
				d.title,
				d.meta_description,
				d.description
				
			FROM
				technics AS c,
				technics_description AS d
			WHERE
			
				c.technics_id = d.technics_id
				
				AND
				
				d.lang_id = '".$_SESSION['lang_id']."'
				AND c.published
				ORDER BY c.category , c.order_number
				
			  ";
			$result = query($sql);
			
			while ($row = mysql_fetch_object($result)) {
				
				
				
				
		?>
        
        <div class="item" data-id="<?=$row->order_number?>/<?=$row->category?>"  data-description="<?=$row->title?>"
        data-url="<?=HTML_BASE?>technics_images/big/<?=$row->cover?>">
			<div style="background-image:url(<?=HTML_BASE?>technics_images/covers/<?=$row->cover?>)"></div>
			<h2><?=$row->title?></h2>
            <div class="zoom"></div>
		</div>
		<div class="item_open" data-id="<?=$row->order_number?>/<?=$row->category?>">
			<div class="timeline_open_content">
			<h2><?=$row->title?></h2>
			<?=$row->description?>
			</div>
		</div>
        
        <?php }?>

</div>
<style>
		.t_line_m .t_node_desc{
			display:none;
			
		}
	</style>
</section>

<?php
foot('home');
?>